home *** CD-ROM | disk | FTP | other *** search
/ PC Plus SuperCD (UK) 1998 May / PCPlus May 1998=disk A.iso / full / CBUILDER / SAMS / SAMPLES / CHAP09 / SCRATCH.CPP < prev    next >
Encoding:
C/C++ Source or Header  |  1997-02-12  |  708 b   |  19 lines

  1. //---------------------------------------------------------------------------
  2. #include <vcl.h>
  3. #pragma hdrstop
  4. //---------------------------------------------------------------------------
  5. USEFORM("SPMain.cpp", ScratchPad);
  6. USEFORM("SPAbout.cpp", AboutBox);
  7. //---------------------------------------------------------------------
  8. WINAPI WinMain(HINSTANCE, HINSTANCE, LPSTR, int)
  9. {
  10.   Application->Initialize();
  11.   Application->Title = "ScratchPad 1.0";
  12.   Application->CreateForm(__classid(TScratchPad), &ScratchPad);
  13.   Application->CreateForm(__classid(TAboutBox), &AboutBox);
  14.   Application->Run();
  15.  
  16.   return 0;
  17. }
  18. //---------------------------------------------------------------------------
  19.